package com.qhong.modules.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.qhong.modules.entity.User;
import com.qhong.modules.mapper.UserMapper;
import com.qhong.modules.service.IUserService;
import java.util.List;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author qhong
 * @since 2018-07-25
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {

	@Override
    public User selectByPrimaryKey(Integer id){
    	return baseMapper.selectByPrimaryKey(id);
	}

	@Override
	public boolean deleteAll(){
    	return retBool(baseMapper.deleteAll());
	}

	@Override
	public List<User> selectListBySQL(){
    	return baseMapper.selectListBySQL();
	}
}
